package cn.com.surker.production.service;

import cn.com.surker.production.entity.InvoiceHandle;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * <p>
 * 生产退转料处理表 服务类
 * </p>
 *
 * @author admin
 * @since 2024-09-26
 */
public interface ErpInvoiceHandleService extends InvoiceHandleService {

	/**
	 * 查询源发货单的操作页面
	 *
	 * @param orgId     站点id
	 * @param invoiceId 源发货单
	 * @param startTime 时间段
	 * @param endTime
	 * @param shipTypes 操作类型
	 * @return
	 */
	List<InvoiceHandle> findSourceInvoice(Long orgId, Long invoiceId, String startTime, String endTime, Integer... shipTypes);

	/**
	 * 查询发货单是否存在退砼记录
	 *
	 * @param orgId
	 * @param invoiceId 发货单id
	 * @return
	 */
	InvoiceHandle queryBackByInvId(Long orgId, Long invoiceId);
}
